﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Elsa.Expressions.Models;
using ElsaExpression = Elsa.Expressions.Models.Expression;

namespace T.FAS.Runtime.MF.Entity
{
    public class BranchCondition
    {
        public string Label { get; set; } = null!;

        public ElsaExpression Condition { get; set; } = ElsaExpression.LiteralExpression(false);

        public BranchCondition() { }
        public BranchCondition(string label, ElsaExpression condition)
        {
            Label = label;
            Condition = condition;
        }
    }
}
